package com.woniuxy.intellihome.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengZhihong
 * @since 2021-08-11 :
 * 1、修正了time相关属性对象类型，由LocalDateTime 订正为 String；
 * 2、为对象添加Lombok注解
 * 3、添加Table注解与数据库字段进行匹配
 */
@Data
@Getter
@Setter
@ToString
@TableName("m_goods_spu")
@EqualsAndHashCode(callSuper = false)
public class GoodsSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String num;

    @TableField("up_time")
    private String upTime;

    @TableField("category_id")
    private Integer categoryId;

    private String description;

    private String preview;

    private String isnew;

    private String ishot;

    private String status;

    @TableField("down_time")
    private String downTime;
    @TableField(exist = false)
    private Category category;
    /*商品筛选条件*/

    //上架时间区间
    @TableField(exist=false)
    private String startTime;
    @TableField(exist=false)
    private String endTime;
}
